﻿using System.ComponentModel;
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
using Pulsus;

namespace SlamCms.Web
{
	[EditorBrowsable(EditorBrowsableState.Never)]
	public static class PreApplicationStartCode
	{
		// Fields
		private static bool _startWasCalled;

		// Methods
		public static void Start()
		{
			if (!_startWasCalled)
			{
				_startWasCalled = true;
				DynamicModuleUtility.RegisterModule(typeof(ErrorLoggingModule));
				DynamicModuleUtility.RegisterModule(typeof(SlamCmsHttpModule));
			}
		}
	}
}
